import Vue from 'vue'
import VueRouter from "vue-router";
import home from '@/components/home'
import info from '@/components/info'
import login from '@/components/login'
import records from '@/components/records'


Vue.use(VueRouter)
const router =  new VueRouter({
	mode: 'history',
    routes: [
		{
			path: '/',
			redirect: 'home'
		},
        {
            path: "/home",
            name: "home",
            component: home
        },
        {
            path: "/login",
            name: "login",
            component: login
        },
        {
            path: "/info",
            name: "info",
            component: info
        },
        {
            path: "/records",
            name: "records",
            component: records
        },
    ]
})

export default router